<div class="ui-widget">
    <div id="data-container" class="ui-state-highlight ui-corner-all content row" style="padding: 0 .7em;">
        <ul id="header-menu" class="header menu row">
	        <li><strong">Loans</strong></li>
           <li id="button" class="button"><img id="button-image" src="/assets/images/icons/genre-plus.png" alt="New genre">New genre</li>
        </ul>
        <div id="books-list" class="inner-body left scroll-y">
        <table id="books-rounded-corner" >
            <!-- Table header -->  
            <thead>  
                <tr>  
                    <th scope="col" colspan="3" class="rounded-left" id="name">Books List</th>
                </tr>  
            </thead> 
            <tfoot>
                <tr>
                    <td colspan="3" class="rounded-foot-left">&nbsp;</td>
                </tr>
            </tfoot> 
            <tbody>  
            <?php
                if (count($books)!=0) {
                    foreach ($books as $book) {
                        echo '<tr><td id="book-title" title="Book\'s Title" value="'.$book->_id.'">'.$book->title.'</td>'."\n";
                        echo '<td id="book-author" title="Book\'s Author">'.$book->author.'</td>'."\n";
                        echo '<td id="book-publisher" title="Book\'s Publisher">'.$book->publisher.'</td>';
                    }
                } else {
                    echo '<tr><td colspan="3">No books founded</td></tr>';
                }
            ?>
            </tbody>
        </table>
        </div>

        <div id="loaners-list" class="inner-body right scroll-y">
        <table id="loaners-rounded-corner" >
            <!-- Table header -->  
            <thead>  
                <tr>  
                    <th scope="col" class="rounded-left" id="name">Loaners List</th>
                </tr>  
            </thead> 
            <tfoot>
                <tr>
                    <td class="rounded-foot-left">&nbsp;</td>
                </tr>
            </tfoot> 
            <tbody>  
            <?php
                /*if (count($books)!=0) {
                    foreach ($books as $book) {
                        echo '<tr><td id="book-title" title="Book\'s Title" value="'.$book->_id.'">'.$book->title.'</td>'."\n";
                        echo '<td id="book-author" title="Book\'s Author">'.$book->author.'</td>'."\n";
                        echo '<td id="book-publisher" title="Book\'s Publisher">'.$book->publisher.'</td>';
                    }
                } else {*/
                    echo '<tr><td>No books founded</td></tr>';
                //}
            ?>
            </tbody>
        </table>
        </div>

    </div>
</div>